package net.cl.mvc.pages;

import java.io.PrintWriter;

import net.cl.mvc.Globals;
import net.cl.mvc.wrappers.ActionContext;
import net.cl.mvc.wrappers.RequestContext;
import net.cl.mvc.wrappers.ResponseContext;

public class MethodNotImplemented {

	public String execute() throws Exception {
		RequestContext request = ActionContext.getContext().getRequestContext();
		ResponseContext response = ActionContext.getContext().getResponseContext();
		PrintWriter out = response.getResponse().getWriter();
		String className = (String) request.getAttribute(Globals.MESSAGE_KEY);
		out.println("<h2>No execute method in " + className + ", you must implements execute method first.</h2>");
		out.close();
		return null;
	}

}
